package com.hand.exam.service.impl;

import com.hand.exam.domain.Warehouse;
import com.hand.exam.mapper.WarehouseMapper;
import com.hand.exam.service.IWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 马旭阳
 * @date2019/7/20
 */
@Service
public class WarehouseServiceImpl implements IWarehouseService {
    @Autowired
    private WarehouseMapper warehouseMapper;

    @Override
    public Warehouse queryWarehouseById(Long id) {
        return warehouseMapper.queryWarehouseById(id);
    }

    @Override
    public Warehouse queryWarehouse(Warehouse warehouse) {

        return warehouseMapper.queryWarehouse(warehouse);
    }

    @Override
    public void insertWarehouse(Warehouse warehouse) {
        warehouseMapper.insertWarehouse(warehouse);
    }

    @Override
    public void updateWarehouse(Warehouse warehouse) {
        warehouseMapper.updateWarehouse(warehouse);
    }

    @Override
    public void deleteWarehouse(Long id) {
        warehouseMapper.deleteWarehouse(id);
    }
}
